package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class AddSpecParam {



    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id",example = "1")
    @NotNull(message = "分类id不能为空")
    @Min(value = 0, message = "输入id 有误设置有误")
    private Integer categoryId;

    /**
     * 规格组名
     */
    @ApiModelProperty(value = "规格组名",required = true)
    @NotNull(message = "规格组名不能为空")
    @Size(min = 0, message = "命名有误")
    private String specName;

    @ApiModelProperty(value = "规格组具体字段名",required = true)
    private List<String> specValues;

}
